import Vue from 'vue'
import axios from 'axios'
import VueAxios from 'vue-axios'

import './assets/common.less'

import dataV from '@jiaminghi/data-view'
import {drag} from '@/directive/directive'

import * as cesium from 'cesium/Cesium'
import * as widgets from 'cesium/Widgets/widgets.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import  * as echarts from 'echarts'
Vue.prototype.$echarts = echarts


import App from './App.vue'

// window.cesium = cesium
window.Cesium = cesium
window.widgets = widgets
Vue.prototype.objects = []

// Vue.prototype.viewer=window.cesium.viewer
Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(VueAxios, axios)
Vue.use(dataV)
Vue.directive('drag', drag)

new Vue({
  render: h => h(App)
}).$mount('#app')
